<?
class User_Func{
    public function getFullname($user_id){
	    $sql = "select f.prefix_name,u.user_fname,u.user_lname 
		           from tb_user u,tb_prefix f where user_id = '$user_id' and f.prefix_id=u.prefix_id ";

		$result = mysql_query($sql)or die(mysql_error());
		$fetch = mysql_fetch_object($result);
		 return $fetch->prefix_name.$fetch->user_fname." &nbsp; ".$fetch->user_lname;
	}
}
?>
